var mongoose = require('mongoose');
var config = require('./config.js');

module.exports = function(){
  var db = mongoose.connect(config.mongodb);
  mongoose.Promise = Promise;
  require('../models/albumModel.js');
  require('../models/albumNameModel.js');
  return db;
}
